
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type UserLabelRelationRequest struct {

	Uid string `json:"uid" form:"uid"`

	LabelId string `json:"label_id" form:"label_id"`

}

func (r *UserLabelRelationRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *UserLabelRelationRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"label_id": "required",

	}
}

func (r *UserLabelRelationRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserLabelRelationRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserLabelRelationRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
